#!/bin/bash

TAP=tap2

# /24 = 0
# /25 = 128
# /26 = 192
# /27 = 224
# /28 = 240
# /29 = 248
# /30 = 252

# DNS 1:
# Pertenece a la red Joker

# Tablas de ruteo
# Salen por R17:
# Red Aquaman
route add -net 194.210.31.0 netmask 255.255.255.0 gw 10.58.6.161 $TAP

# Red Batman
route add -net 10.58.6.224 netmask 255.255.255.240 gw 10.58.6.161 $TAP

# Red Catwoman
route add -net 10.58.7.128 netmask 255.255.255.192 gw 10.58.6.161 $TAP

# Red Emma Frost
route add -net 10.58.7.192 netmask 255.255.255.240 gw 10.58.6.161 $TAP

# Red Flash
route add -net 10.111.25.0 netmask 255.255.255.128 gw 10.58.6.161 $TAP

# Red Green Lantern
route add -net 10.111.25.128 netmask 255.255.255.128 gw 10.58.6.161 $TAP

# Red Lux Luthor
route add -net 10.58.5.0 netmask 255.255.255.0 gw 10.58.6.161 $TAP

# Red Magneto
route add -net 10.158.6.128 netmask 255.255.255.224 gw 10.58.6.161 $TAP

# Red Quicksilver
route add -net 10.58.6.192 netmask 255.255.255.224 gw 10.58.6.161 $TAP

#
# Salen por R18:
# Redes NightCrawler
route add -net 10.58.7.216 netmask 255.255.255.252 gw 10.58.6.162 $TAP
route add -net 10.58.7.220 netmask 255.255.255.252 gw 10.58.6.162 $TAP
route add -net 10.58.7.224 netmask 255.255.255.252 gw 10.58.6.162 $TAP
route add -net 10.58.7.228 netmask 255.255.255.252 gw 10.58.6.162 $TAP
route add -net 10.58.7.232 netmask 255.255.255.252 gw 10.58.6.162 $TAP
route add -net 10.58.7.236 netmask 255.255.255.252 gw 10.58.6.162 $TAP
route add -net 10.58.7.240 netmask 255.255.255.252 gw 10.58.6.162 $TAP

